// Js 中 class extends super 只是语法糖 ， 不会改变原型式面向对象
class Animal {
    constructor(name) {
        this.name = name;
    }
    sayHi() {
        console.log(`${this.name} sayHi`)
    }
}

class Dog extends Animal {
    constructor(name, type) {
        super(name);
        this.type = type;
    }
    sayHi() {
        console.log(`${this.name} 汪汪汪`)
    }
}

const dog = new Dog('贝拉', '边牧');
console.log(dog);// Dog { name: '贝拉', type: '边牧' }
console.log(dog.__proto__);// Animal {} 为什么不是Dog捏？